SOGetHostByAddr


C Specification

#include <dolphin/socket.h>
SOHostEnt* SOGetHostByAddr( const void* addr, int len, int type );

Description

SOGetHostByAddr() returns information about the host with address addr.

Note: SOGetHostByAddr() is not reentrant and not thread-safe.

Arguments

addr A pointer to an address in network byte order.
len The length of the address pointed to by addr.
type The family type of the address. (SO_PF_INET for an IPv4 address).

Return Values

A pointer to SOHostEnt structure if the requested entry was found. Otherwise NULL.

See Also

SOGetHostByName, SOHostEnt